Text File | 1992-01-25 | 746 b | 9 lines | [TEXT/ttxt]
Verb Randomize
Syntax Randomize ()
Parameters None required.
Action Randomizes the pseudo-random number generator.
Returns True if successful.
Example Randomize ()
» true
Notes This verb overcomes a bug in Frontier™ 1.0. The bug is that the pseudo-random number generator uses the same sequence everytime Frontier is launched - this may be useful in some circumstances, but was not for me. When the Randomize verb is installed in Frontier, a code resource (of type RAND) is added to the Frontier.root file - the code contained in this resource "seeds" the psuedo-random number generator sequence with the current time of day. A call to Randomize in your customStartup script is suggested. This verb and code is copyrighted 1992 by Terry Teague.